/**
 *	@project:	kybernetes
 *	@author:	D.Toepel
 *	@note:		---
 *	
 *	Copyright (C) 2009  D.Toepel <de.dtools> {at} <gmail> {dot} <com>
 *	
 *	This program is free software: you can redistribute it and/or modify
 *	it under the terms of the GNU General Public License as published by
 *	the Free Software Foundation, either version 3 of the License, or
 *	(at your option) any later version.
 *	
 *	This program is distributed in the hope that it will be useful,
 *	but WITHOUT ANY WARRANTY; without even the implied warranty of
 *	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *	GNU General Public License for more details.
 *	
 *	You should have received a copy of the GNU General Public License
 *	along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *	
 */
package dt.htwk.rmi;

import java.rmi.Remote;
import java.rmi.RemoteException;

import dt.htwk.utilities.User;

/**
 * <h3>RMIConnector</h3>
 *
 * @author DToepel
 *
 */
public interface RMIConnector extends Remote {
	
	public static String REGISTRY_NAME = "KCServer";//RMISrvImpl
	public static Integer RMI_PORT = 18098;

    /**
     * Diese Methode wird nur zum Verbindungstest verwendet
     */
    public String setTestText(String text) throws RemoteException;
    
    /**
     * Anmelden eines Benutzers
     */
    public boolean loginUser(String user, String pword) throws RemoteException;
    
    /**
     * Abmelden eines Benutzers
     */
    public boolean logoutUser(String user) throws RemoteException;
    
    /**
     * Registrieren eines neuen Benutzers
     */
    public boolean registerUser(User user) throws RemoteException;
    
    /*
     * weitere Methoden zur Regattaueberwachung
     */
    
}